num = int(input('请输入一个三位数：'))
time = 1
r_num=0
for i in str(num):
    temp=time*int(i)
    r_num+=temp
    time*=10

print(r_num)
